import React, { FC } from 'react';
import classNames from 'classnames';
import './index.less';


export interface OptGroupProps {
  label: string
  children: React.ReactNode
}

export const OptGroup: FC<OptGroupProps> = React.memo((props) => {
  const { label, children } = props
  const classes = classNames('weiwei-ui-option-group')

  return (
    <div className={classes}>
      <div>{label}</div>
      <div >{children}</div>
    </div>
  )
})

OptGroup.defaultProps = {

};
OptGroup.displayName = 'OptGroup'
export default OptGroup;
